<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/commons.jsp"%>
<%@ include file="/common/meta.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>资源管理</title>
	<script>
		$(document).ready(function(){
			//聚焦第一个输入框
			$("#name").focus();
			//为inputForm注册validate函数
			$("#inputForm").validate(
				{
					messages: {
					value:{required: "资源必须填写"},
					resourceType:{required: "资源类型必须填写"}
					}
				}
			);
		});
	</script>
</head>

<body>
<h3><s:if test="id == null">新增</s:if><s:else>修改</s:else>资源</h3>
<div id="inputDiv">
<form id="inputForm" action="resc!save.action" method="post">
<input type="hidden" name="id" value="${id}" />
<table>
	<tr>
		<td>资源:</td>
		<td><input type="text" name="value" size="40" value="${value}" class="required"/></td>
	</tr>
	<tr>
		<td>资源类型:</td>
		<td><input type="text" name="resourceType" size="40" value="${resourceType}" class="required"/></td>
	</tr>
	<tr>
		<td>资源描述:</td>
		<td><input type="text" name="rescDesc" size="40" value="${rescDesc}"/></td>
	</tr>
	<tr>
		<td colspan="2">
			<input type="submit" value="提交" />&nbsp; 
			<input type="button" value="取消" onclick="history.back()"/>
		</td>
	</tr>
</table>
</form>
</div>
</body>
</html>